<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <textarea   cols="30" rows="10">
        武汉地铁注意事项
        1.不要追逐嬉闹
        2.不要携带违禁物品
    </textarea> <br>
    <input id="btn" type="button" value="请仔细阅读协议(5)" disabled>  
    <script>
        var btn=document.getElementById("btn");
        var time=5;
        var timer=setInterval(function(){
            time--;
            if(time<=0){
                clearInterval(timer)
                btn.value="同意"
                btn.disabled=false;
            }else{
                btn.value=`请仔细阅读协议(${time})`
            }
        },1000)
    </script>
</body>
</html>